package ams

import "lib/structs/enum"

// 服务端常量
const (
	TcpHeartbeatInterval = enum.Minute * 2          // 心跳间隔，单位秒
	TcpDeadline          = TcpHeartbeatInterval * 2 //  读写超时时间，建议使用两倍心跳间隔

	ClientFolder       = "C:/miao/ams/"           // 默认安装目录
	ClientMain         = "ams_client.exe"         // 默认主程序名称
	ClientPluginFolder = ClientFolder + "plugin/" // 默认插件目录
	Guarder            = "guarder"                // 默认守卫名称
	Macp               = "macp"                   // 默认插件名称
	IDP                = "idp"                    //
	Update             = "update"                 // 升级插件的名称
	SayHi              = "sayHi"                  // 子命令-举手

)

// 客户端常量
const (
	SqliteFile     = "miao.db" //文件默认放在
	UniqueCodeFile = "id.hcy"
	ServerName     = "miao_ams_client"

	ConfigKeyForLog        = "log_lv"
	ConfigKeyForAmsCode    = "ams_code"
	ConfigKeyForUniqueType = "unique_type" // 唯一码生成方式
	ConfigKeyForUniqueCode = "unique_code" // 唯一码
	ConfigKeyForHandsUp    = "hands_up_command"
	ConfigKeyForGuarder    = "guarder_command"
	ConfigKeyForFileServer = "file_server_addr"

	TcpBackOff    = 1
	TcpBackOffMax = enum.Minute * 5

	PolicyScanTime = enum.Minute // 策略扫描时间间隔
)
